package com.shemy.fileservice.utils;

/**
 * @Description 统一处理返回的对象
 * @Author Dzsom
 * @Date 2018/5/28 20:58
 * @Encoding UTF-8
 * @Version 1.0
 **/
public class Response {
    private boolean success;
    private String message;
    private Object body;

    public Response(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public Response(boolean success, String message, Object body) {
        this.success = success;//是否成功
        this.message = message;//返回的消息
        this.body = body;//返回的数据
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getBody() {
        return body;
    }

    public void setBody(Object body) {
        this.body = body;
    }
}
